GtkModelButton: specify the proper default values
authorMatthias Clasen <mclasen@redhat.com>
Sun, 23 Nov 2014 20:05:01 +0000 (15:05 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 23 Nov 2014 23:30:13 +0000 (18:30 -0500)
Caught by the defaultvalue test: ::text starts out as "", and
::iconic should be FALSE by default.

gtk/gtkmodelbutton.c

index 35772403b7ac579fa3bc33642df448c3b885444d..355a61cbd31bdc1f2258ff7899c85fb356613c43 100644 (file)
@@ -879,7 +879,7 @@ gtk_model_button_class_init (GtkModelButtonClass *class)
     g_param_spec_string ("text",
                          P_("Text"),
                          P_("The text"),
-                         NULL,
+                         "",
                          G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
 
   /**
@@ -956,7 +956,7 @@ gtk_model_button_class_init (GtkModelButtonClass *class)
     g_param_spec_boolean ("iconic",
                           P_("Iconic"),
                           P_("Whether to prefer the icon over text"),
-                          TRUE,
+                          FALSE,
                           G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS);
   g_object_class_install_properties (object_class, LAST_PROPERTY, properties);